﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTGroup.Networking.Framework;

namespace Utility
{
   public static class IteratorUtil
    {
        /// <summary>
        /// 去掉 数组中的空格
        /// </summary>
        /// <param name="items">string[]</param>
        public static string[] Trim(string[] items)
        {
            List<string> returnStrs = new List<string>();

            for (int i = 0; i < items.Length; i++)
            {
                if (items[i].IsNullOrEmpty() == false)
                {
                    returnStrs.Add(items[i]);
                }
            }

            return returnStrs.ToArray();
        }
    }
}
